from django.conf.urls import url

from apps.order.views import OrderView, OrderCancelView, OrderConfirmPaymentView

urlpatterns = [
    # 订单列表和创建
    url(r'^order/$', OrderView.as_view()),

    # 订单详情
    url(r'^order/(?P<order_id>\d+)/$', OrderView.as_view()),
    
    # 取消订单
    url(r'^order/(?P<order_id>\d+)/cancel/$', OrderCancelView.as_view()),
    
    # 确认线下支付
    url(r'^order/(?P<order_id>\d+)/confirm_payment/$', OrderConfirmPaymentView.as_view()),
]
